Compiler warning fixed
authoroliskoli <oliskoli>
Wed, 26 Oct 2005 01:40:49 +0000 (01:40 +0000)
committeroliskoli <oliskoli>
Wed, 26 Oct 2005 01:40:49 +0000 (01:40 +0000)
cet.c

diff --git a/cet.c b/cet.c
index a08febfc724e9b6b5d3c96e0676ce0d80242c28a..4b88908824e01f95a1bbbfa76d613a32b259fbf8 100644 (file)
--- a/cet.c
+++ b/cet.c
@@ -72,10 +72,10 @@ int
 cet_ucs4_to_utf8(char *dest, size_t dest_size, int value)
 {
        int result;
-       char trash[16];
+       unsigned char trash[16];
        unsigned char *c;
        
-       c = (dest != NULL) ? dest : trash;
+       c = (dest != NULL) ? (unsigned char *) dest : trash;
 
        if ((value & 0xffffff80) == 0)                  /* <= 7 bits */
        {